import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import qiankun from 'vite-plugin-qiankun'
import path from 'path'


// https://vitejs.dev/config/
export default defineConfig({
  server:{
    host:'127.0.0.1',
    port:3000,
    headers:{
      'Access-Control-Allow-Origin': '*'
    }
  },
  plugins: [
    vue(),
    qiankun(
      'vue3App',
      {useDevMode:true}
    )
  ],
  resolve:{ 
    alias:{
      "@":path.resolve('./src')
    }
  }
})
